//
//  CommentCell.m
//  B
//
//  Created by lanou on 16/5/12.
//  Copyright © 2016年 裴启航. All rights reserved.
//

#import "CommentCell.h"

@implementation CommentCell

/* 时间 formatted_published_at
   内容 description
   头像图片 avator_url
   用户名 nick_name
*/
-(void)setDataWithModel:(CommentModel *)model
{
    self.headImageView.clipsToBounds = YES;
    self.headImageView.layer.cornerRadius = self.headImageView.frame.size.width / 2;
    [self.headImageView sd_setImageWithURL:[NSURL URLWithString:model.avator_url]];
    self.titleLabel.text = model.content;
    self.nameLabel.text = model.nick_name;
    self.timeLabel.text = model.formatted_published_at;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
